<div ng-init="init();" class="kmi-layout-content SMT07-content" ng-class="[mode]">
    <div class="kmi-header-row">
        <div class="kmi-side-btn left" ng-click="back();">
            <i class="material-icons">&#xE408;</i>
            <div class="kmi-can-click"></div>
        </div>
        <div class="header-title" ng-bind="'SMT07.title' | translate:now_item"></div>
    </div>
    <div class="kmi-layout-main-content ">
        <!-- 基本資料 data -->
        <div class="kmi-row-fields data">
            <!-- 使用者資料 data_user -->
            <div class="column-item left data_user">
                <img src="image/icons/person.png"></img> 
                <label ng-bind="user_name"></label>
            </div>
            <!-- 環境資料 data_environment -->
            <div class="column-item right data_environment">
                <label ng-bind="('home.env' | translate) + envInfo"></label>
            </div>
        </div>
        <!-- 選擇領用工具 selectTitle -->
        <div class="selectTitle ng_turn-none">
            <div class="kmi-row-fields selectTitle_fields" ng-repeat="item in item_list" ng-click="selectTool(item);">
                <div class="column-item">
                    <!-- <i class="material-icons selectTitle_icons" ng-bind="item.icon"></i> -->
                    <label class="selectTitle_name" ng-bind="item.title"></label>
                    <i class="material-icons selectTitle_arrowIcons">keyboard_arrow_right</i>
                </div>
            </div>
        </div>
        <!-- 主要內容 SMT07_main (預設消失) -->
        <div class="SMT07_main ng_turn-open">
            <!-- 搜尋掃描欄 qr-code -->
            <div class="kmi-row-fields barcode_content qr-code" id="input_barcode">
                <img src="image/icons/search.png"></img> 
                <!-- <input class="qr-code_input" mdl-barcode="input_barcode(barcode)"/> -->
                <input class="barcode_input value input_plot" readonly="readonly"
                    ng-keypress="input_PDA_barcode($event);" ng-model="barcode" hidekeyboard="true" />
                <div class="qr-code_icon" ng-click="QRCodeScanner();">
                    <img src="image/icons/QRCode.png">
                </div>
            </div>
            <!-- 掃描後的主要項目 mainItem -->
            <div class="kmi-list column-selector">
                <div class="kmi-list__header">
                    <!-- 這部分還不確定是否只有這個項目，先不加上多國語系 -->
                    <div class="kmi-list__column" style="flex: 0 0 75px;" ng-bind="'SMT07.list.column1' | translate"></div>
                    <div class="kmi-list__column" style="flex: 0 0 70px;" ng-bind="'SMT07.list.column3' | translate"></div>
                    <div class="kmi-list__column" style="flex: 1;" ng-bind="'SMT07.list.column2' | translate"></div>
                    <div class="kmi-list__column" style="flex: 0 0 45px;" ng-bind="'處置'"></div>
                </div>
                <div class="kmi-list__row-content">
                    <div class="kmi-list__row" ng-repeat="item in result | orderBy:'-order'">
                        <div class="kmi-list__column" style="flex: 0 0 75px;" ng-bind="item.tool_no"></div>
                        <div class="kmi-list__column" style="flex: 0 0 70px;" ng-bind="'SMT07.process.type_' + item.now_process_name | translate"></div>
                        <div class="kmi-list__column" style="flex: 1;" ng-bind="item.result"></div>
                        <div class="kmi-list__column scrapped_item" style="flex: 0 0 45px; z-index:1;">
                            <i class="material-icons red-icon" ng-click="RemoveResult(item);" style="margin-left: 5px;">remove</i>
                        </div>
                        <div class="kmi-can-click"></div>
                    </div>
                    <div class="kmi-list__row" ng-repeat="item in exe_result | orderBy:'-order'" ng-class="{'is-error':item.status == 'E' || item.status == 'S'}">
                        <div class="kmi-list__column" style="flex: 0 0 75px;" ng-bind="item.tool_no"></div>
                        <div class="kmi-list__column" style="flex: 0 0 70px;" ng-bind="'SMT07.process.response.type_' + item.tool_handle_type | translate"></div>
                        <div class="kmi-list__column" style="flex: 1;" ng-bind="item.result"></div>
                        <div class="kmi-list__column" style="flex: 0 0 45px; z-index:1;" ng-show="now_process_name == 'return' && item.status == 'S' && !item.revokeSuccess">
                            <div class="scrapped_btn">
                                <label class="label" ng-bind="'SMT07.list.revoke' | translate"></label>
                                <div class="kmi-can-click" ng-click="revoke(item);"></div>
                            </div>
                        </div>
                        <div class="kmi-can-click"></div>
                    </div>
                </div>
            </div>
            <!-- 主要流程 mainProcess -->
            <div class="kmi-row-fields mainProcess">
                <div class="column-item mainProcess_model">
                    <div class="mainProcess_box" ng-repeat="status_item in now_item.now_status" ng-class="{'is-select_mainProcess': now_item.now_process == status_item.code }"
                        ng-click="SelectProcess(status_item);">
                        <label class="label" ng-bind="'SMT07.list.' + status_item.name | translate"></label>
                    </div>
                </div>
            </div>
        </div>
        <!-- 關閉按鈕 & 執行按鈕 -->
        <div class="kmi-mobile__btn-content">
            <button class="kmi-button__mobile" ng-click="back();">
                <label ng-bind="'SMT07.close' | translate"></label>
                <div class="kmi-can-click"></div>
            </button>
            <button class="kmi-button__mobile init-none" ng-click="confirm();">
                <label ng-bind="'SMT07.start' | translate"></label>
                <div class="kmi-can-click"></div>
            </button>
        </div>
    </div>
</div>
